{% extends "StdBase.html" %}

{% block title %}简历{% endblock %}

{% load updateleftmenucss %}

{% block leftmenu %}{% left_css "grid" %} {% endblock %}


{% block javascript%}

    <script type="text/javascript" src="/static/js/custom/uploadcv.js"></script>
    <script type="text/javascript" src="/static/js/plugins/jquery.fileupload.js"></script>
    <script type="text/javascript" src="/static/js/plugins/jquery.fileupload-ui.js"></script>
    <script type="text/javascript" src="/static/js/plugins/jquery.fileupload-fp.js"></script>
    <script type="text/javascript" src="/static/js/plugins/vendor/jquery.ui.widget.js"></script>
    <script type="text/javascript" src="/static/js/plugins/jquery.iframe-transport.js"></script>
    <link rel="stylesheet" href="/static/css/jquery.fileupload-ui.css">
    <link rel="stylesheet" href="/static/css/upload.css">
    <!-- jQuery Image Gallery styles -->

{% endblock %}
{% block maincontent %}

    <div class="maincontent {% if ms|length == 0%}noright{% endif %}">

    <div class="maincontentinner">
        <ul class="maintabmenu">
            <li class="current"><a href="{% url 'load_cv' %}">我的简历</a></li>
            <li ><a href="{% url 'approval_cv' %}">审核简历</a></li>
        </ul><!--maintabmenu-->

        <div class="content">
            <ul class="widgetlist">
                <li><a href="{% url 'refresh' %}" class="refresh">刷新</a></li>
                <li><a href="{% url 'load_upload_cv'%}" class="uploadcv">上传</a></li>
            </ul>

            <br clear="all" />
            <div class="contenttitle radiusbottom0">
                <h2 class="table"><span>简历管理</span></h2>
            </div><!--contenttitle-->
            <table cellpadding="0" cellspacing="0" border="0" class="stdtable dashtable">
                <colgroup>
                    <col class="con1" />
                    <col class="con0" />
                    <col class="con1" />
                    <col class="con0" />
                    <col class="con1" />
                    <col class="con0" />
                    <col class="con1" />
                </colgroup>
                <thead>
                <tr>
                    <th class="head1">简历名称</th>
                    <th class="head0">语言</th>
                    <th class="head1">状态</th>
                    <th class="head0">创建时间</th>
                    <th class="head1">更新时间</th>
                    <th class="head0">&nbsp;</th>
                    <th class="head1">&nbsp;</th>
                </tr>
                </thead>

                <tbody>

                {% for resume in resumes %}
                    <tr>
                        <td class="con0">{{ resume.Resume_name }}</td>
                        <td class="con0" style="text-align: center">{{ resume.Language_id.Language_name}}</td>
                        <td class="con1">{{ resume.Resume_status.Status_name}}</td>
                        <td class="con0">{{ resume.Create_time|date:"Y-m-d"}}</td>
                        <td class="center">{{ resume.Update_time|date:"Y-m-d"}}</td>
                        <td class="center"><a href="{% url "del_cv" resume.Resume_id %}" id="delcvbutton"  class="btn btn4 btn_trash anchorbutton button_alert delcvbutton"></a></td>
                        <td class="center"><a href="{% url "download_file" resume.Resume_id %}" class="toggle" download="{% url "download_file" resume.Resume_id %}">下载</a></td>
                    </tr>
                {% endfor %}

                </tbody>
            </table>

            <br /><br />


        </div><!--content-->

    </div><!--maincontentinner-->
    {% include "includes/foot.html" %}
{% endblock %}



{% block right %}
    {% if ms %}
    <div class="mainright">
        <div class="mainrightinner">
            <div class="widgetbox">
                <div class="title"><h2 class="tabbed"><span>简历消息</span></h2></div>
                <div class="widgetcontent announcement">
                    {% if ms %}
                    {% for message in ms %}
                        <p>
                           <span class="radius2">{{message.Send_Date_Time|date:"Y-m-d " }}</span><br />简历---- {{message.Message_content|safe     }}</p>
                    {% endfor %}
                    {% else %}
                        <span class="radius2" style="text-align: center"> 暂无简历消息</span>
                    {% endif %}
                    </div><!--widgetcontent-->
            </div><!--widgetbox-->

        </div><!--mainrightinner-->
    </div><!--mainright-->
    {%endif %}
{% endblock %}
